]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Remove slide transitions before setting value manually
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 9 Sep 2019 19:28:46 +0000 (21:28 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 11 Sep 2019 11:39:44 +0000 (11:39 +0000)
Remove transitions of the `slide-x` property of the layout manager
before we set the property to a fixed value, otherwise the transitions
might still be running and change the value after we set it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/707

js/ui/overviewControls.js

index cf24a5e566103fbf06fac3fd3178372554a7784e..f5c51eed7a8158f7a6283165890ee95cf8fb63dc 100644 (file)
@@ -248,6 +248,7 @@ var SlidingControl = class {
         // selector; this means we can now safely set the full slide for
         // the next page, since slideIn or slideOut might have been called,
         // changing the visiblity
+        this.actor.remove_transition('@layout.slide-x');
         this.layout.slide_x = this._getSlide();
         this._updateTranslation();
     }